<?php
namespace Admin\Controller;
/**
 * 会员分组
 * User: linkwhy
 * Date: 2015/10/19
 * Time: 14:20
 */
class MemberClassController extends AdminController{

    public function index(){
        $list   = $this->lists('clients_group');
        int_to_string($list);
        $this->assign('_list', $list);
        $this->meta_title = '会员分组列表';
        $this->display();
    }

    public function add(){
        $this->meta_title = '新增会员分组';
        $this->display('update');
    }

    public function edit(){
        $data = $this->getField('clients_group', 'id,name,need_score', array('id' => I('get.id')));
        $this->meta_title = '修改会员分组';
        $this->assign('data', $data);
        $this->display('update');
    }

}